<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>库存管理</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/common.css">
<link href="${pageContext.request.contextPath}/css/lyz.calendar.css" rel="stylesheet" type="text/css" />
<script src="http://www.jq22.com/jquery/1.4.4/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/js/lyz.calendar.min.js" type="text/javascript"></script>
<style type="text/css">
body{
	height: 620px;
	margin: 0;
}
table {
	height: 100%;
	width: 100%;
}
</style>
</head>
<body>
	<table>
		<tr style="height: 10%; background:#01A2D6; text-align: center;">
			<td colspan="2">
				<div style="font: 30px black;color: white">库存管理系统</div>
				<div align="right" style="padding-right: 40px;color: white;">
					<c:choose>
						<c:when test="${sessionScope.user!=null}">
							${sessionScope.user.username}
							<a href="${pageContext.request.contextPath }/logout" style="color: white;" onclick="return confirm('您确定要退出登录吗?');">退出</a>
						</c:when>
						<c:otherwise>
							<a target="content_frame" href="${pageContext.request.contextPath }/tologin">登陆</a>
							｜<a target="content_frame" href="${pageContext.request.contextPath }/toregist">注册</a>
						</c:otherwise>
					</c:choose>
				</div>
			</td>
		</tr>
		<tr style="height:90%;" valign="top" >
			<td style="width: 15%; padding: 5px;">
				<!-- 
				<a target="content_frame" href="${pageContext.request.contextPath}/childWearType/listAll">类别管理</a><br /> 
				<a target="content_frame" href="${pageContext.request.contextPath}/childWearSize/listAll">尺寸管理</a><br/> <br/>
				 -->
				<a target="content_frame" href="${pageContext.request.contextPath}/childWear/listAll">库存管理</a><br />
				<a target="content_frame" href="${pageContext.request.contextPath}/inWearOrder/listAll">进货管理</a><br />
				<a target="content_frame" href="${pageContext.request.contextPath}/outWearOrder/listAll">订单管理</a><br />
			</td>
			<td style="width: 85%; height:85%;">
				<iframe name="content_frame" style="width: 100%;height: 100%;border: 0;" src="${pageContext.request.contextPath}/index.jsp"></iframe>
			</td>
		</tr>
	</table>
</body>
</html>